'current-source-changed', this._onSourceChanged.bind(this),
'sources-changed', this._onSourcesModified.bind(this), this);
this._currentSource = this._inputSourceManager.currentSource;
+ this._purpose = Main.inputMethod.contentPurpose;
Main.inputMethod.connectObject(
'notify::content-purpose', this._onPurposeHintsChanged.bind(this),
'input-panel-state', (o, state) => this.emit('panel-state', state), this);
}
+ get purpose() {
+ return this._purpose;
+ }
+
destroy() {
this._inputSourceManager.disconnectObject(this);
Main.inputMethod.disconnectObject(this);